package com.example.controller;
import com.example.pojo.SaleChance;
import com.example.service.ISaleChanceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;

@RestController
@RequestMapping("/ajax")
public class AxiosController {
    @Autowired
    private ISaleChanceService cs;
    @RequestMapping("SaleChance")
    public List<SaleChance> selectAllSaleChance(){
        return cs.selectAll();
    }
}
